<?php
require_once "../database/mysql.class.php";
class vipdao{
	private $db;
	public function __construct(){
		$this->db=new mysql();
	}
	

	public function Chaxun(){
		//查询菜单数据库
		$sql="select * from vip;";
		return $this->db->query($sql);
	}
	//添加
	public function Tian($tlevel,$tjia,$tequan){
			$sql=" INSERT INTO vip VALUES(".$tlevel.",'$".$tjia."','".$tequan."');";//'<img src=/'../../qian/".$img."/'>'
			return $this->db->inser($sql);
			header("location:../view/main.php?url=vipset.php");
		
	}
}




?>